<?php
require_once 'a1shujuku.php';
header("content-type:text/html;charset=utf-8");
//$id = $_POST['id'];
//$id = intval($id);
//echo "<pre>";
//print_r($_POST);
//die;

$name = $_POST['name'];
$sex = $_POST['sex'];
$liuyan = $_POST['liuyan'];
$touxiang = $_POST['touxiang'];

$sql = "INSERT INTO `erciyuan`.`girl` 
(`id`, `name`, `sex`, `liuyan`, `touxiang`) 
VALUES (NULL, '$name', '$sex', '$liuyan', '$touxiang');";//引号里面要对应上面$字符


$result = $conn->query($sql);
if($result ===false){
    echo "注册失败";}
else {
    header ("Location:a1word.php");
}




